import httpInstance from "@/utils/http"
// 获取banner轮播图数据
export function getBannerAPI (params = {}) {
  // 默认为1 商品为2
  const { distributionSite = '1' } = params
  return httpInstance({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

// 获取新鲜好物
export const findNewAPI = () => httpInstance.get('/home/new')

// 人气推荐接口
export const getHotAPI = () => httpInstance.get('/home/hot')

// 热门品牌接口
export const getBrandAPI = () => httpInstance.get('/home/goods')